<?php
////////////////////////////////////////////////////
//	LinBoard
//	viewboard.php
//	Created: 19th February 2009; 13:22 UTC
//	LinBoard (c) Copyright OpenInferno 2008, 2009
////////////////////////////////////////////////////

//Setup Environment
error_reporting(E_ALL | E_STRICT);
define("LINBOARD", true);

//Load Framework
require_once("./Config.php");
require_once(ROOT_PATH . "/Framework/Framework.php");

$Board = Framework::Board()->getBoard($_GET['bid']);

$Threads = Framework::Thread()->getThreads($_GET['bid']);

Framework::Template()->set("Board", $Board);
Framework::Template()->set("Threads", $Threads);
Framework::Template()->fetch(ROOT_PATH . "/Templates/Default/viewboard_template.php");
?>